Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Fix EXT:solr route enhancer #3742

Merged

Conversation

dkd-friedrich
Copy link
Member

What this pr does

SolrRoutingMiddleware was limited to indexing processs, but as the SolrFacetMaskAndCombineEnhancer requires this middleware to add the required parameters from the route path, this limitation causes that the route enhancer is ineffective.

This commit fixes this issue by reenabling the middleware for frontend requests and also ensures that route paths can be resolved correctly if PageTypeSuffix enhancer is active.

How to test

Configure route enhancer:

  • SolrFacetMaskAndCombineEnhancer
  • PageTypeSuffix

With this commit

  • EXT:solr can handle and react to facet parameters in route path
  • no warning Could not resolve page by path "menu.json" and language "de" if requesting a specific page type on root page
  • no TypeError occurs if no options are passed to the SolrFacetMaskAndCombineEnhancer via solr

Relates: #3202
Resolves: #3741

dkd-friedrich added a commit to dkd-friedrich/ext-solr that referenced this pull request Aug 2, 2023
SolrRoutingMiddleware was limited to indexing processs, but
as the SolrFacetMaskAndCombineEnhancer requires this middleware
to add the required parameters from the route path, this limitation
causes that the route enhancer is ineffective.

This commit fixes this issue by reenabling the middleware for
frontend requests and also ensures that route paths can be resolved
correctly if PageTypeSuffix enhancer is active.

Ports: TYPO3-Solr#3742
Relates: TYPO3-Solr#3202
Resolves: TYPO3-Solr#3741
SolrRoutingMiddleware was limited to indexing processs, but
as the SolrFacetMaskAndCombineEnhancer requires this middleware
to add the required parameters from the route path, this limitation
causes that the route enhancer is ineffective.

This commit fixes this issue by reenabling the middleware for
frontend requests and also ensures that route paths can be resolved
correctly if PageTypeSuffix enhancer is active.

Relates: TYPO3-Solr#3202
Resolves: TYPO3-Solr#3741
@dkd-friedrich dkd-friedrich force-pushed the bugfix/main/3741-fix_route_enhancer branch from 88d6a1a to b46c926 Compare August 2, 2023 09:27
dkd-friedrich added a commit to dkd-friedrich/ext-solr that referenced this pull request Aug 2, 2023
SolrRoutingMiddleware was limited to indexing processs, but
as the SolrFacetMaskAndCombineEnhancer requires this middleware
to add the required parameters from the route path, this limitation
causes that the route enhancer is ineffective.

This commit fixes this issue by reenabling the middleware for
frontend requests and also ensures that route paths can be resolved
correctly if PageTypeSuffix enhancer is active.

Ports: TYPO3-Solr#3742
Relates: TYPO3-Solr#3202
Resolves: TYPO3-Solr#3741
dkd-friedrich added a commit to dkd-friedrich/ext-solr that referenced this pull request Aug 2, 2023
SolrRoutingMiddleware was limited to indexing processs, but
as the SolrFacetMaskAndCombineEnhancer requires this middleware
to add the required parameters from the route path, this limitation
causes that the route enhancer is ineffective.

This commit fixes this issue by reenabling the middleware for
frontend requests and also ensures that route paths can be resolved
correctly if PageTypeSuffix enhancer is active.

Ports: TYPO3-Solr#3742
Relates: TYPO3-Solr#3202
Resolves: TYPO3-Solr#3741
Copy link
Collaborator

@dkd-kaehm dkd-kaehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

dkd-kaehm pushed a commit that referenced this pull request Sep 11, 2023
SolrRoutingMiddleware was limited to indexing processs, but
as the SolrFacetMaskAndCombineEnhancer requires this middleware
to add the required parameters from the route path, this limitation
causes that the route enhancer is ineffective.

This commit fixes this issue by reenabling the middleware for
frontend requests and also ensures that route paths can be resolved
correctly if PageTypeSuffix enhancer is active.

Ports: #3742
Relates: #3202
Resolves: #3741
@dkd-kaehm dkd-kaehm merged commit b722463 into TYPO3-Solr:main Sep 11, 2023
@dkd-kaehm dkd-kaehm deleted the bugfix/main/3741-fix_route_enhancer branch September 11, 2023 12:56
@dkd-kaehm dkd-kaehm mentioned this pull request Oct 13, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] SolrRoutingMiddleware ineffective
2 participants